import {
  Component,
  OnInit,
  ViewEncapsulation,
  ChangeDetectionStrategy,
  Output,
  EventEmitter,
  Input
} from '@angular/core';

@Component({
  selector: 'load-tip',
  templateUrl: './load-tip.component.html',
  styleUrls: ['./load-tip.component.scss'],
  encapsulation: ViewEncapsulation.None
})
export class LoadTipComponent implements OnInit {
  @Input() loadOver;
  @Output() loadMore: EventEmitter<any> = new EventEmitter<any>();

  constructor() {
  }

  /**
   * @description 加载更多数据
   * @author ouyqx-691
   * @date 2017/09/29
   */
  getMoreData() {
    this.loadMore.emit();
  }

  ngOnInit() {
    // console.log(this.loadOver)
  }
}
